﻿using System.Collections.Generic;
using Shuba.Model;

namespace Shuba.Business
{
    public class Menu
    {
        
        private Data.Menu _menu;

        public Menu()
        {
            _menu = new Data.Menu();
        }

        public List<MenuInfo> GetParentMenuList(int UserID, string AppCode)
        {
            return _menu.GetParentMenuList(UserID, AppCode);
        }

        public List<MenuInfo> GetParentMenuList(string AppCode, int UserID, string UserType)
        {
            return _menu.GetParentMenuList(AppCode, UserID, UserType);
        }

        public List<MenuInfo> GetSubMenuList(int MenuID, int UserID, string AppCode)
        {
            return _menu.GetSubMenuList(MenuID, UserID, AppCode);
        }

        public List<MenuInfo> GetSubMenuList(int MenuID, int UserID, string AppCode, string UserType)
        {
            return _menu.GetSubMenuList(MenuID, UserID, AppCode, UserType);
        }

        public MenuInfo Get(string uniqueName, string AppCode)
        {
            return _menu.Get(uniqueName, AppCode);
        }
    }
}
